package cn.ronghuanet.org.mapper;

import cn.ronghuanet.org.domain.Employee;
import cn.ronghuanet.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lijie
 * @since 2023-08-15
 */
public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee loadByPhone(String phone);

    // 如果mapper.java的方法中需要传递多个参数的话,必须在参数前面加@Param
    // 如果注解中的参数名和参数名不一样的话,mapper.xml中取值时以@param注解中的为准
    Employee loadByUsernameOrEmail(@Param("username") String username,@Param("email") String email);
}
